package com.lagou;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@SpringBootApplication
@MapperScan("com.lagou.mapper")
@EnableCaching
public class Springboot05CacheApplication extends WebMvcConfigurerAdapter {
    //favorPathExtension表示是否支持后缀匹配
    @Override
    public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
        configurer.favorPathExtension(false);
    }
    public static void main(String[] args) {
        SpringApplication.run(Springboot05CacheApplication.class, args);
    }

}
